package com.atguigu.gulimall.order.config;


/**
 * @version 1.0
 * @Author yanjingren
 * @Date 2021/7/13
 * @Description com.atguigu.gulimall.order.config
 */
//@Configuration
public class MySeataConfig {

//    @Autowired
//    DataSourceProperties dataSourceProperties;
//
//    @Bean
//    public DataSource dataSource(DataSourceProperties dataSourceProperties) {
//        HikariDataSource hikariDataSource = dataSourceProperties.initializeDataSourceBuilder().type(HikariDataSource.class).build();
//        if (StringUtils.hasText(dataSourceProperties.getName())) {
//            hikariDataSource.setPoolName(dataSourceProperties.getName());
//        }
//        return new DataSourceProxy(hikariDataSource);
//    }


}
